package Creature;

/**
 * 食物属性应该有名字，价格，数量，增加的饥饿值，健康值，精神值，疲劳值。有些食物对有些属性没有更改
 */
public class Food {
    public String name;
    public int price;

    public int addhunger;
    public int addhealth;
    public int addsan;


    public Food(String name) {
        this.name=name;
        switch (name){
            case "汤达人":
                price = 50;
                addhunger = 10;
                addsan = 10;
                addhealth = 10;
                break;
            case "饼干":
                price = 30;
                addhunger = 10;
                addsan = 10;
                addhealth = 10;
                break;
            default:
                price = 30;
                addhunger = 20;
                addsan = 10;
                addhealth = 10;
                break;

        }


    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}

